content 装配切换与收尾 (fix #329) - #358
Merged
Merged
Conversation
内容脚本删除自持的翻译态机:在飞标志、翻译态查询、还原编排、 状态推送分支全部由编排模块开关入口接管。悬浮球、快捷键、popup 三条触发路径只调开关入口,content 只留 DOM 操作与消息监听。 Co-Authored-By: zhexuancai-uts <261878103+zhexuancai-uts@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题
内容脚本自持一套翻译态机:在飞标志、翻译态查询、还原编排、状态推送分支,与编排模块(#325-#328)职责重叠。
根因
#325-#328 的注入面已齐备,content 未切换到纯装配。
修复
内容脚本删除自持翻译态:悬浮球、快捷键、popup 消息三条触发路径都只调用编排模块的开关入口;在飞互斥、准入、状态推送、观察器启停由模块统一执行;content 保留的职责仅限收集构建、渲染与提示渲染(DOM 操作)和消息监听接线。
验证
pnpm typecheck通过;pnpm test641 个用例全部通过;pnpm test:e2e:core34 个用例通过(含连点、在飞还原、隐藏单元补翻等回归);pnpm build正常。Closes #329